package cn.ii8080.i8.module.account.web.controller;

import cn.ii8080.i8.module.account.client.AccountClient;
import cn.ii8080.i8.module.account.entity.AccountEntity;
import cn.ii8080.i8.module.account.vo.AccountVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/account")
public class AccountController extends BaseController<AccountEntity> {
    @Autowired
    AccountClient accountClient;

    @GetMapping("/test")
    public AccountVo test() {
        AccountVo byId = accountClient.getById("3b0a0781b3da4e81b8ef823bf03a7ee5");
        return byId;
    }
}
